<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<script src="http://localhost/mStoreC2CServer/jquery-latest.min.js" type="text/javascript"></script>

<script>
	$(document).ready(function(){
		$('#btnCallAjax').click(function(){
			$.ajax({
				url:"http://localhost/mStoreC2CServer/index.php/api/UserService/getAll",
				type:"get",
				data:"format=json",
				success: function(result){
					var str = 'ajax:';
					for(var i in result){
						for(var j in result[i])
							str = str + result[i][j] + " ";
					}
					alert(str);
				}
			})
		})
	});
</script>
</head>
<body>
Hello everyone!
<div>
	<input type="button" id="btnCallAjax" value="Call Ajax"/>
</div>

<div id="content"></div>
</body>
</html>